package com.lylg.picture_share.controller;


import com.lylg.picture_share.entity.U;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;
import java.util.List;
@Controller
@RequestMapping("/mapp")
public class ajaxController {
   @RequestMapping("/ajax")
   @ResponseBody
    public List<U> ajax(){
        List<U> list = new ArrayList<>();
        U u1 = new U("one",22,"hahah");
        U u2 = new U("one",22,"hahah");
        U u3 = new U("one",22,"hahah");
        U u4 = new U("one",22,"hahah");
        list.add(u1);
        list.add(u2);
        list.add(u3);
        list.add(u4);
         return list;
    }
}
